local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1
L0_1 = {}
L0_1.group_id = 133008556
L1_1 = {}
monsters = L1_1
L1_1 = {}
npcs = L1_1
L1_1 = {}
gadgets = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 556001
L3_1 = RegionShape
L3_1 = L3_1.CUBIC
L2_1.shape = L3_1
L3_1 = {}
L3_1.x = 1200.0
L3_1.y = 150.0
L3_1.z = 1200.0
L2_1.size = L3_1
L3_1 = {}
L3_1.x = 1091.809
L3_1.y = 255.0
L3_1.z = -832.003
L2_1.pos = L3_1
L2_1.area_id = 10
L3_1 = {}
L4_1 = 1
L3_1[1] = L4_1
L2_1.vision_type_list = L3_1
L3_1 = {}
L3_1.config_id = 556002
L4_1 = RegionShape
L4_1 = L4_1.CUBIC
L3_1.shape = L4_1
L4_1 = {}
L4_1.x = 1200.0
L4_1.y = 185.0
L4_1.z = 1200.0
L3_1.size = L4_1
L4_1 = {}
L4_1.x = 1091.809
L4_1.y = 272.5
L4_1.z = -832.003
L3_1.pos = L4_1
L3_1.area_id = 10
L4_1 = {}
L5_1 = 2
L4_1[1] = L5_1
L3_1.vision_type_list = L4_1
L4_1 = {}
L4_1.config_id = 556003
L5_1 = RegionShape
L5_1 = L5_1.CUBIC
L4_1.shape = L5_1
L5_1 = {}
L5_1.x = 1200.0
L5_1.y = 140.0
L5_1.z = 1200.0
L4_1.size = L5_1
L5_1 = {}
L5_1.x = 1091.809
L5_1.y = 330.0
L5_1.z = -832.003
L4_1.pos = L5_1
L4_1.area_id = 10
L5_1 = {}
L6_1 = 3
L5_1[1] = L6_1
L4_1.vision_type_list = L5_1
L5_1 = {}
L5_1.config_id = 556004
L6_1 = RegionShape
L6_1 = L6_1.CUBIC
L5_1.shape = L6_1
L6_1 = {}
L6_1.x = 1200.0
L6_1.y = 140.0
L6_1.z = 1200.0
L5_1.size = L6_1
L6_1 = {}
L6_1.x = 1091.809
L6_1.y = 365.0
L6_1.z = -832.003
L5_1.pos = L6_1
L5_1.area_id = 10
L6_1 = {}
L7_1 = 4
L6_1[1] = L7_1
L5_1.vision_type_list = L6_1
L6_1 = {}
L6_1.config_id = 556005
L7_1 = RegionShape
L7_1 = L7_1.CUBIC
L6_1.shape = L7_1
L7_1 = {}
L7_1.x = 1200.0
L7_1.y = 140.0
L7_1.z = 1200.0
L6_1.size = L7_1
L7_1 = {}
L7_1.x = 1091.809
L7_1.y = 400.0
L7_1.z = -832.003
L6_1.pos = L7_1
L6_1.area_id = 10
L7_1 = {}
L8_1 = 5
L7_1[1] = L8_1
L6_1.vision_type_list = L7_1
L7_1 = {}
L7_1.config_id = 556006
L8_1 = RegionShape
L8_1 = L8_1.CUBIC
L7_1.shape = L8_1
L8_1 = {}
L8_1.x = 1200.0
L8_1.y = 505.0
L8_1.z = 1200.0
L7_1.size = L8_1
L8_1 = {}
L8_1.x = 1091.809
L8_1.y = 617.5
L8_1.z = -832.003
L7_1.pos = L8_1
L7_1.area_id = 10
L8_1 = {}
L9_1 = 6
L8_1[1] = L9_1
L7_1.vision_type_list = L8_1
L8_1 = {}
L8_1.config_id = 556007
L9_1 = RegionShape
L9_1 = L9_1.CUBIC
L8_1.shape = L9_1
L9_1 = {}
L9_1.x = 1200.0
L9_1.y = 470.0
L9_1.z = 1200.0
L8_1.size = L9_1
L9_1 = {}
L9_1.x = 1091.809
L9_1.y = 635.0
L9_1.z = -832.003
L8_1.pos = L9_1
L8_1.area_id = 10
L9_1 = {}
L10_1 = 7
L9_1[1] = L10_1
L8_1.vision_type_list = L9_1
L9_1 = {}
L9_1.config_id = 556008
L10_1 = RegionShape
L10_1 = L10_1.CUBIC
L9_1.shape = L10_1
L10_1 = {}
L10_1.x = 1200.0
L10_1.y = 470.0
L10_1.z = 1200.0
L9_1.size = L10_1
L10_1 = {}
L10_1.x = 1091.809
L10_1.y = 670.0
L10_1.z = -832.003
L9_1.pos = L10_1
L9_1.area_id = 10
L10_1 = {}
L11_1 = 8
L10_1[1] = L11_1
L9_1.vision_type_list = L10_1
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
L1_1[4] = L5_1
L1_1[5] = L6_1
L1_1[6] = L7_1
L1_1[7] = L8_1
L1_1[8] = L9_1
regions = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 1556001
L2_1.name = "ENTER_REGION_556001"
L3_1 = EventType
L3_1 = L3_1.EVENT_ENTER_REGION
L2_1.event = L3_1
L2_1.source = "1"
L2_1.condition = ""
L2_1.action = "action_EVENT_ENTER_REGION_556001"
L2_1.trigger_count = 0
L2_1.forbid_guest = false
L3_1 = {}
L3_1.config_id = 1556002
L3_1.name = "LEAVE_REGION_556002"
L4_1 = EventType
L4_1 = L4_1.EVENT_LEAVE_REGION
L3_1.event = L4_1
L3_1.source = "1"
L3_1.condition = ""
L3_1.action = "action_EVENT_LEAVE_REGION_556002"
L3_1.trigger_count = 0
L3_1.forbid_guest = false
L1_1[1] = L2_1
L1_1[2] = L3_1
triggers = L1_1
L1_1 = {}
variables = L1_1
L1_1 = {}
L1_1.suite = 1
L1_1.end_suite = 0
L1_1.rand_suite = false
init_config = L1_1
L1_1 = {}
L2_1 = {}
L3_1 = {}
L2_1.monsters = L3_1
L3_1 = {}
L2_1.gadgets = L3_1
L3_1 = {}
L4_1 = 556001
L5_1 = 556002
L6_1 = 556003
L7_1 = 556004
L8_1 = 556005
L9_1 = 556006
L10_1 = 556007
L11_1 = 556008
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L3_1[8] = L11_1
L2_1.regions = L3_1
L3_1 = {}
L4_1 = "ENTER_REGION_556001"
L5_1 = "LEAVE_REGION_556002"
L3_1[1] = L4_1
L3_1[2] = L5_1
L2_1.triggers = L3_1
L2_1.rand_weight = 100
L1_1[1] = L2_1
suites = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2
  L2_2 = A1_2.param1
  if L2_2 ~= 556005 then
    L2_2 = A1_2.param1
    if L2_2 ~= 556008 then
      goto lbl_19
    end
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.DelPlayerGroupVisionType
  L3_2 = A0_2
  L4_2 = {}
  L5_2 = A0_2.uid
  L4_2[1] = L5_2
  L5_2 = {}
  L6_2 = 1
  L5_2[1] = L6_2
  L2_2(L3_2, L4_2, L5_2)
  L2_2 = 0
  do return L2_2 end
  ::lbl_19::
  L2_2 = -1
  return L2_2
end
action_EVENT_ENTER_REGION_556001 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
  L2_2 = A1_2.param1
  if L2_2 ~= 556005 then
    L2_2 = A1_2.param1
    if L2_2 ~= 556008 then
      L2_2 = -1
      return L2_2
    end
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.GetPosByEntityId
  L3_2 = A0_2
  L4_2 = A0_2.target_entity_id
  L2_2 = L2_2(L3_2, L4_2)
  L3_2 = math
  L3_2 = L3_2.abs
  L4_2 = L2_2.x
  L5_2 = regions
  L5_2 = L5_2[5]
  L5_2 = L5_2.pos
  L5_2 = L5_2.x
  L4_2 = L4_2 - L5_2
  L3_2 = L3_2(L4_2)
  L4_2 = regions
  L4_2 = L4_2[5]
  L4_2 = L4_2.size
  L4_2 = L4_2.x
  L4_2 = L4_2 / 2
  if L3_2 <= L4_2 then
    L3_2 = math
    L3_2 = L3_2.abs
    L4_2 = L2_2.z
    L5_2 = regions
    L5_2 = L5_2[5]
    L5_2 = L5_2.pos
    L5_2 = L5_2.z
    L4_2 = L4_2 - L5_2
    L3_2 = L3_2(L4_2)
    L4_2 = regions
    L4_2 = L4_2[5]
    L4_2 = L4_2.size
    L4_2 = L4_2.z
    L4_2 = L4_2 / 2
    if L3_2 <= L4_2 then
      L3_2 = L2_2.y
      L4_2 = regions
      L4_2 = L4_2[8]
      L4_2 = L4_2.pos
      L4_2 = L4_2.y
      L5_2 = regions
      L5_2 = L5_2[8]
      L5_2 = L5_2.size
      L5_2 = L5_2.y
      L5_2 = L5_2 / 2
      L4_2 = L4_2 + L5_2
      if L3_2 < L4_2 then
        L3_2 = L2_2.y
        L4_2 = regions
        L4_2 = L4_2[5]
        L4_2 = L4_2.pos
        L4_2 = L4_2.y
        L5_2 = regions
        L5_2 = L5_2[5]
        L5_2 = L5_2.size
        L5_2 = L5_2.y
        L5_2 = L5_2 / 2
        L4_2 = L4_2 - L5_2
        if L3_2 > L4_2 then
          L3_2 = -4
          return L3_2
        end
      end
    end
  end
  L3_2 = ScriptLib
  L3_2 = L3_2.AddPlayerGroupVisionType
  L4_2 = A0_2
  L5_2 = {}
  L6_2 = A0_2.uid
  L5_2[1] = L6_2
  L6_2 = {}
  L7_2 = 1
  L6_2[1] = L7_2
  L3_2(L4_2, L5_2, L6_2)
  L3_2 = 0
  return L3_2
end
action_EVENT_LEAVE_REGION_556002 = L1_1
